<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>

{{- $description := partialCached "data/description" . .RelPermalink -}}
<meta name='description' content='{{ $description }}'>
{{ with .Params.Keywords }}<meta name="keywords" content="{{ delimit . ", " }}">{{ end }}

{{- $title := partialCached "data/title" . .RelPermalink -}}

<!-- <title>
    {{ if eq (index (findRE "^Category" $title 1) 0) "Category" }}
        {{ replace $title "Category" "分类" 1 }}
    {{ else if eq (index (findRE "^Tag" $title 1) 0) "Tag" }}
        {{ replace $title "Tag" "标签" 1 }}
    {{ end }}
</title> -->

<title>{{ $title }}</title>

<link rel='canonical' href='{{ .Permalink }}'>

{{- partial "head/style.html" . -}}
{{- partial "head/script.html" . -}}
{{- partial "head/opengraph/include.html" . -}}

{{- range .AlternativeOutputFormats -}}
    <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
{{- end -}}

<!--{{ with .Site.Params.favicon }}
    <link rel="shortcut icon" href="{{ . }}" type="image/x-icon" />
{{ end }}-->
<link rel="shortcut icon" href="{{ .Site.Params.favicon }}" type="image/x-icon" />

<style>
    .article-content {
        position: relative;
    }
    .article-content table, 
    .article-content tbody {
        white-space: normal;
        word-break: keep-all;
    }
    .article-content u {
        text-decoration-line: none;
        border-bottom: 1.5px solid;
        padding-bottom: 1.5px;
    }
    .article-content li {
        margin-top: 0.8em;
        margin-bottom: 0.8em;
    }
    .article-content ul:last-child, 
    .article-content ol:last-child {
        margin-bottom: 0;
    }
    .article-content td * {
        /*margin-top: 0;
        padding-top: 0;*/
    }
    .article-content td ol, 
    .article-content td ul {
        padding-left: 1.2em;
    }
    .article-content td {
        padding-top: 1em;
        padding-bottom: 1em;
        padding-left: 1em;
        padding-right: 1em;
    }
    .article-content td li:first-child,
    .article-content td ol:first-child, 
    .article-content td ul:first-child {
        margin-top: 0;
    }
    .article-content td ul:last-child,
    .article-content td ol:last-child,
    .article-content td ul:first-child {
        margin-bottom: 0;
    }
</style>

{{- template "_internal/google_analytics.html" . -}}
{{- partial "head/custom.html" . -}}
